#pragma once

/* 假的层 */
#include <metalc/base/mlayer.h>

#define dummy_printf(...)   
DECL_MLAYER_FUNC(dummy);

/* 占用的tls对象指针个数 */
DEF_MLAYER_OBJNR(dummy, 0)

SAI void dummy_pinit(const mlfunc_t * cont){
	INFO("dummy pinit\n");
}
SAI void dummy_tinit(const mlfunc_t * cont){
	INFO("dummy tinit\n");
}
SAI void *dummy_alloc(mreq_t *req, const mlfunc_t * cont){
	return cont->lalloc(req);
}
SAI bool_t dummy_free(mreq_t *req, const mlfunc_t * cont){
	return cont->lfree(req);
}
SAI size_t dummy_sizeof(mreq_t *req, const mlfunc_t * cont){
	return cont->lsizeof(req);
}
